<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        @keyframes flash {

            0%,
            100% {
                color: red;
            }

            50% {
                color: yellow;
            }
        }

        .flashing {
            animation: flash 2s infinite;
        }
    </style>
</head>

<body>
    <p class="flashing">这段文本将闪烁。</p>
</body>

</html>